package com.woniu.cq.medical.dao.mymapper;

import com.woniu.cq.medical.dao.InformedMapper;
import com.woniu.cq.medical.entity.Informed;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Primary;

import java.util.List;

/**
 * @Author: Klaus
 * @Date: 2020/9/9 18:43
 */
@Primary
public interface My_InformedMapper extends InformedMapper {

    @Select("insert into lonbon_Informed VALUES(NULL,#{name},#{url})")
    void insertInformed(@Param("name") String name,@Param("url") String url);

    @Select("SELECT * from lonbon_Informed")
    List<Informed> selectAllInformed();
}
